home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / DateThing / DateThing.r < prev    next >
Encoding:
Text File  |  2000-09-28  |  5.3 KB  |  296 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        DateThing.r
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/19/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #include "Types.r"
  24.  
  25. resource 'MENU' (128, preload) {
  26.     128,
  27.     textMenuProc,
  28.     0x7FFFFFFD,
  29.     enabled,
  30.     apple,
  31.     {    /* array: 2 elements */
  32.         /* [1] */
  33.         "About", noIcon, noKey, noMark, plain,
  34.         /* [2] */
  35.         "-", noIcon, noKey, noMark, plain
  36.     }
  37. };
  38.  
  39. resource 'MENU' (129, preload) {
  40.     129,
  41.     textMenuProc,
  42.     0xE00,
  43.     enabled,
  44.     "File",
  45.     {    /* array: 10 elements */
  46.         /* [1] */
  47.         "New", noIcon, "N", noMark, plain,
  48.         /* [2] */
  49.         "Open", noIcon, "O", noMark, plain,
  50.         /* [3] */
  51.         "Close", noIcon, "W", noMark, plain,
  52.         /* [4] */
  53.         "Save", noIcon, "S", noMark, plain,
  54.         /* [5] */
  55.         "Save As...", noIcon, noKey, noMark, plain,
  56.         /* [6] */
  57.         "-", noIcon, noKey, noMark, plain,
  58.         /* [7] */
  59.         "Page Setup...", noIcon, noKey, noMark, plain,
  60.         /* [8] */
  61.         "Print...", noIcon, "P", noMark, plain,
  62.         /* [9] */
  63.         "-", noIcon, noKey, noMark, plain,
  64.         /* [10] */
  65.         "Quit", noIcon, "Q", noMark, plain
  66.     }
  67. };
  68.  
  69. resource 'MENU' (130, preload) {
  70.     130,
  71.     textMenuProc,
  72.     0x3400,
  73.     enabled,
  74.     "Edit",
  75.     {    /* array: 6 elements */
  76.         /* [1] */
  77.         "Undo", noIcon, "Z", noMark, plain,
  78.         /* [2] */
  79.         "-", noIcon, noKey, noMark, plain,
  80.         /* [3] */
  81.         "Cut", noIcon, "X", noMark, plain,
  82.         /* [4] */
  83.         "Copy", noIcon, "C", noMark, plain,
  84.         /* [5] */
  85.         "Paste", noIcon, "V", noMark, plain,
  86.         /* [6] */
  87.         "Clear", noIcon, noKey, noMark, plain
  88.     }
  89. };
  90.  
  91. resource 'MENU' (131) {
  92.     131,
  93.     textMenuProc,
  94.     0x7FFFFFD7,
  95.     enabled,
  96.     "Test Stuff",
  97.     {    /* array: 1 elements */
  98.         /* [1] */
  99.         "Show Date Dialog", noIcon, "D", noMark, plain
  100.     }
  101. };
  102.  
  103. resource 'DITL' (128, purgeable) {
  104.     {    /* array DITLarray: 4 elements */
  105.         /* [1] */
  106.         {164, 115, 184, 185},
  107.         Button {
  108.             enabled,
  109.             "OK"
  110.         },
  111.         /* [2] */
  112.         {5, 10, 59, 293},
  113.         StaticText {
  114.             disabled,
  115.             "The Simplest Shell\n\nModified to show the"
  116.             " DateThing"
  117.         },
  118.         /* [3] */
  119.         {76, 3, 154, 301},
  120.         StaticText {
  121.             disabled,
  122.             "FredWare from Apple Developer Technical "
  123.             "Support, ADS group.\nCopyright ©  1991-19"
  124.             "93 Apple Computer Inc.\nWritten by C.K. H"
  125.             "aun (<TR>)."
  126.         },
  127.         /* [4] */
  128.         {60, 80, 78, 225},
  129.         StaticText {
  130.             disabled,
  131.             "version 1.0"
  132.         }
  133.     }
  134. };
  135.  
  136. resource 'DITL' (129, purgeable) {
  137.     {    /* array DITLarray: 2 elements */
  138.         /* [1] */
  139.         {170, 90, 190, 148},
  140.         Button {
  141.             enabled,
  142.             "OK"
  143.         },
  144.         /* [2] */
  145.         {10, 40, 62, 204},
  146.         StaticText {
  147.             disabled,
  148.             "Help information should go here"
  149.         }
  150.     }
  151. };
  152.  
  153. resource 'DITL' (130, purgeable) {
  154.     {    /* array DITLarray: 3 elements */
  155.         /* [1] */
  156.         {80, 100, 100, 158},
  157.         Button {
  158.             enabled,
  159.             "Exit"
  160.         },
  161.         /* [2] */
  162.         {10, 80, 27, 237},
  163.         StaticText {
  164.             disabled,
  165.             "Bad System Version!"
  166.         },
  167.         /* [3] */
  168.         {50, 25, 66, 232},
  169.         StaticText {
  170.             disabled,
  171.             "Requires System 7 or greater."
  172.         }
  173.     }
  174. };
  175.  
  176. resource 'DITL' (131, purgeable) {
  177.     {    /* array DITLarray: 5 elements */
  178.         /* [1] */
  179.         {100, 210, 120, 268},
  180.         Button {
  181.             enabled,
  182.             "OK"
  183.         },
  184.         /* [2] */
  185.         {100, 120, 120, 178},
  186.         Button {
  187.             enabled,
  188.             "Cancel"
  189.         },
  190.         /* [3] */
  191.         {40, 23, 74, 278},
  192.         UserItem {
  193.             disabled
  194.         },
  195.         /* [4] */
  196.         {90, 200, 128, 282},
  197.         UserItem {
  198.             disabled
  199.         },
  200.         /* [5] */
  201.         {10, 71, 29, 230},
  202.         StaticText {
  203.             disabled,
  204.             "Select a range of dates"
  205.         }
  206.     }
  207. };
  208.  
  209. data 'ALRT' (128, purgeable) {
  210.     $"0028 0028 00E5 016B 0080 7744"                      /* .(.(...k.ÄwD */
  211. };
  212.  
  213. data 'ALRT' (130, purgeable) {
  214.     $"0028 0028 0095 0128 0082 5555"                      /* .(.(.ï.(.ÇUU */
  215. };
  216.  
  217. data 'DLOG' (129, "Sample Help Dialog", purgeable) {
  218.     $"0022 0028 00EA 0118 0001 0100 0100 0000"            /* .".(............ */
  219.     $"0000 0081 00"                                       /* ...Å. */
  220. };
  221.  
  222. resource 'DLOG' (130, purgeable) {
  223.     {40, 40, 177, 341},
  224.     dBoxProc,
  225.     invisible,
  226.     goAway,
  227.     0x0,
  228.     131,
  229.     "",
  230.     centerMainScreen
  231. };
  232.  
  233. resource 'STR#' (128, purgeable) {
  234.     {    /* array StringArray: 7 elements */
  235.         /* [1] */
  236.         " ",
  237.         /* [2] */
  238.         " ",
  239.         /* [3] */
  240.         " ",
  241.         /* [4] */
  242.         " ",
  243.         /* [5] */
  244.         " Data Aquisition Duration: ",
  245.         /* [6] */
  246.         " to ",
  247.         /* [7] */
  248.         "DaD start must be larger than DaD end!!!"
  249.         "!!"
  250.     }
  251. };
  252.  
  253. resource 'MBAR' (128) {
  254.     {    /* array MenuArray: 4 elements */
  255.         /* [1] */
  256.         128,
  257.         /* [2] */
  258.         129,
  259.         /* [3] */
  260.         130,
  261.         /* [4] */
  262.         131
  263.     }
  264. };
  265.  
  266. data 'WIND' (128, purgeable) {
  267.     $"0028 0028 0136 023C 0000 0100 0000 0000"            /* .(.(.6.<........ */
  268.     $"0000 0653 696D 706C 65"                             /* ...Simple */
  269. };
  270.  
  271. resource 'SIZE' (-1) {
  272.     reserved,
  273.     acceptSuspendResumeEvents,
  274.     reserved,
  275.     canBackground,
  276.     multiFinderAware,
  277.     backgroundAndForeground,
  278.     dontGetFrontClicks,
  279.     ignoreChildDiedEvents,
  280.     is32BitCompatible,
  281.     isHighLevelEventAware,
  282.     localAndRemoteHLEvents,
  283.     notStationeryAware,
  284.     dontUseTextEditServices,
  285.     reserved,
  286.     reserved,
  287.     reserved,
  288.     70000,
  289.     70000
  290. };
  291.  
  292. resource 'STR ' (128) {
  293.     "Simple Help..."
  294. };
  295.  
  296.